package com.mybatis.entity;
public class Employee {
	private int id;//工号
	private String name;//姓名
	private String sex;//性别
	private String birthday;//生日(yyyy-MM-dd),用的String类型，不会Data类型
	private int dptId;//部门编号
	private Department department;//部门实体类
	
	/**有参构造方法
	 * @author 安世广
	 * @param id
	 * @param name
	 * @param sex
	 * @param birthday
	 * @param dptId
	 * @param department
	 */
	public Employee(int id, String name, String sex, String birthday, int dptId ,Department department) {
		super();
		this.id = id;
		this.name = name;
		this.sex = sex;
		this.birthday = birthday;
		this.dptId = dptId;
		this.department=department;
	}
	
	/**无参构造方法
	 * @author 安世广
	 */
	
	
	/**get/set方法
	 * @author 安世广
	 */
	public Employee() {
		super();
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getBirthday() {
		return birthday;
	}
	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}
	public int getDptId() {
		return dptId;
	}
	public void setDptId(int dptId) {
		this.dptId = dptId;
	}
	public Department getDepartment() {
		return department;
	}
	public void setDepartment(Department department) {
		this.department = department;
	}
}
